from Utils.router import router
from Utils.zj import shopmoney


@router.get('/zj/Salestrend', tags=['销售趋势'], summary='上月本月销售趋势')  # 上月及本月销售趋势
async def get_Salestrend():
    data = shopmoney.days_cur_month()
    shop_get_Salestrend = shopmoney.get_Salestrend()
    return {'day': data, 'thismoondata': shop_get_Salestrend[0], 'thatmoondata': shop_get_Salestrend[1]}
